package exemple.DesignExample;

public class DesignProcess {

    public DesignProcess() {
        
        /** ServiceLocator **/
//        /Singleton
        //Ex.: ServiceLocator.getRepository(CustomerDao.class).insert(currentCustomer);
        //OU Ex.: ServiceLocator.getRepository(Customer.class).insert(currentCustomer);
        //OU AINDA: Customer.getRepository().insert...
//        public <RESULT_DAO extends Dao> RESULT_DAO getRepository(Class<RESULT_DAO> locatorClass ) {
//            locatorClass.isAssignableFrom( Dao.class ); se false, joga um Exception
//            new ServiceLocator().getRepository( CustomerDao.class ).insert( new Customer() );
//            return null;
//        }
        
    }
    
}
